home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4024 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: nntp.teleport.com!sschaem
  2. From: sschaem@teleport.com (Stephan Schaem)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: TMapping again!
  5. Date: 16 Feb 1996 05:20:58 GMT
  6. Organization: Teleport - Portland's Public Access (503) 220-1016
  7. Distribution: world
  8. Message-ID: <4g147q$sit@maureen.teleport.com>
  9. References: <38232371@kone.fipnet.fi> <4fntd3$g56@sunsystem5.informatik.tu-muenchen.de> <38232442@kone.fipnet.fi> <4fvnjb$gdm@oreig.uji.es>
  10. NNTP-Posting-Host: linda.teleport.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Jorge Acereda Macia (ii202@rossegat.uji.es) wrote:
  14. : Jyrki Saarinen (jsaarinen@kone.fipnet.fi) wrote:
  15.  
  16. : > Btw, I took a new approach in making a Texture/Gouraud
  17. : > triangle routine; now it fits almost completely in 256b.
  18. : > Before it was much larger..
  19.  
  20. : How many special cases do you handle?
  21.  
  22.  The rendering loop is <80 bytes, I think it leave enought room
  23.  to calc the 'slopes'(12 to 15 16bit mul per triangle) in a 256byte 
  24.  cache of at least the generic case. (non flat top triangle).
  25.  But then you might want to optimize special cases when any of the slope
  26.  are null (Very often the texture xstep or ystep is null, so the inner 
  27.  loop can be 'greatly' optimized... well, its worth an extra 2 byte for
  28.  a beq to the write maping code) and you have no chance to cache all 
  29.  the variation in 256bytes then.
  30.  I would unroll the innerloop, you probably can save hundreds of dbra
  31.  and this can defently balance against having the setup in the cache (
  32.  plus it wouldn't anyway if you switch rendering loop depanding on the
  33.  case) 
  34.  
  35.  Stephan
  36.